<!DOCTYPE html>
<html style="height: 100%">
    <head>
        <meta charset="utf-8" />
        <style>
			html,
			body {
				width: 100%;
				height: 100%;
			}
		</style>
    </head>
    <body style="height: 100%; margin: 0">
        <!-- 为 ECharts 准备一个具备大小（宽高）的 DOM -->
        <div id="main" style="width: 100%;height:100%;"></div>
        <script type="text/javascript" src="echarts.min.js"></script>
        <script type="text/javascript">
			//声明Echarts实例
			var myChart = echarts.init(document.getElementById('main'));

			function setOption(json) {
			alert("这是一个天窗")
				myChart.setOption(json);
			}
		</script>
    </body>
</html>
